﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Pow
{
    class Gameover
	{

		Game1 game;
        private Texture2D goimg;
        private Vector2 posicaoGoimg;

		public Gameover(Game1 game)
		{
            this.game = game;
            loadContent();
		}

        private void loadContent()
        {
            
            goimg = game.Content.Load<Texture2D>("gameover2");
            posicaoGoimg = new Vector2(400 - goimg.Width / 2, 300 - goimg.Height / 2);
        }
       public void update(GameTime gameTime, Jogador jogador)
        {
            
        }

       public void draw(GameTime gameTime, Jogador jogador)
       {
           if (jogador.gameover)
           {
               game.spriteBatch.Draw(goimg, posicaoGoimg, Color.White);
           }
       }

	}
}
